package swu.edu.cn.javaee.mapper;

import org.springframework.stereotype.Repository;
import swu.edu.cn.javaee.entity.Group;

import java.util.List;

@Repository
public interface GroupMapper {
    //新建群组
    public void saveGroup(Group group);
    //查询所有群组
    public List<Group> queryGroupList();
    //统计所有群数
    public Integer count();
    //根据群id查找群
    public Group queryGroupById(String gid);
    //删除群
    public void deleteGroup(Group group);
    //更新群信息
    public void updateGroup(Group group);
}
